package base.thread.produce_consumer;

/**
 * 消费者
 * @author 饭香
 *
 */
public class Cousumer implements Runnable{

	private Shop shop;//要去消费的商店
	public Cousumer(Shop shop){
		this.shop=shop;
	}
	public void run() {
		for(int i=0;i<100;i++){//消费100次
			shop.cousu();
		}
	}
	
}


